package edu.nwpu.zya.coreops.modules.resource.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.nwpu.zya.coreops.common.utils.PageUtils;
import edu.nwpu.zya.coreops.modules.resource.entity.EcsEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author zhouyuang
 * @email 742025491@qq.com
 * @date 2022-04-18 22:23:40
 */
public interface EcsService extends IService<EcsEntity> {

    PageUtils queryEcsVoPage(Map<String, Object> params);

    PageUtils queryMetricVoPageByType(Map<String, Object> params);

    void addMetrics(Long hostId, List<Long> metricIds);

    void cancelMetrics(Long hostId, List<Long> metricIds);

    List<EcsEntity> getEcsListByUserId(Long userId);

    EcsEntity getEcsByInstanceId(String instanceId);

    void removeEcsByIds(List<Long> ids);

    void deleteEcsMockTask(List<Long> ids);

    EcsEntity getEcsByRuleId(Long ruleId);

    void saveEcs(EcsEntity ecs);

    void updateByRds(EcsEntity ecs);
}

